package cn.hairui.blog.dao;

import cn.hairui.blog.entity.SRescManage;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author laoganbu
 * @since 2020-04-08
 */
@Mapper
public interface SRescManageMapper extends BaseMapper<SRescManage> {
    @Select("select * from s_resc_manage where use_flag=#{showFlag} order by order_id asc")
    List<SRescManage> selectByUseFlagOrder(String showFlag);

    @Select("select * from s_resc_manage order by order_id asc")
    List<Map> list();

    @Select("select * from s_resc_manage where resc_id=#{rescId}")
    SRescManage getByRescId(String rescId);
}
